<?php
/**
 * Created by PhpStorm.
 * User: Loong
 * Date: 2021/7/14
 * Time: 8:47
 */
namespace app\admin\controller;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;

class Brand
{

    public function brand()
    {
        ////拼裝where條件
        //$arr = \app\admin\logic\Brand::setWhere();
        ////查詢brand數據
        //$list = \app\admin\model\Brand::getBrandList($arr['where'],$arr['whereOr']);
        //拼裝where條件

        list($where,$whereOr) = \app\admin\logic\Brand::setWhere();
        //查詢brand數據
        $list = \app\admin\model\Brand::getBrandList($where,$whereOr);


        View::assign('list',$list);
        return view();
    }







































}